<?php
namespace app\shop\controller\admin;

use app\admin\library\AdminController;

use app\shop\library\Snowflake;

class Index extends AdminController{
    public function onIndex(){
        $this->pageTitle = '首页';
        $this->pageIcon = 'fa fa-home';
        return $this->display();
    }

    public function onTest(){
        return $this->displayBlank('admin.test');
    }

    public function onTest2(){
       print_r(Snowflake::prase('6034050515394'));
       //10年前的time
       echo strtotime('2024-01-01');
    }
}